//
//  VCOf3rdTabBarItem.m
//  UIHomeWork_07
//
//  Created by tusm on 16/7/23.
//  Copyright © 2016年 tusm. All rights reserved.
//

#import "VCOf3rdTabBarItem.h"
#import "JHButton.h"
#import "LaGoViewController.h"
#import "BTViewController.h"

@interface VCOf3rdTabBarItem ()

@end

@implementation VCOf3rdTabBarItem

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self createSubView];
}
- (void)viewWillAppear:(BOOL)animated{

    self.tabBarController.tabBar.hidden = YES;


}
- (void)createSubView{

    JHButton *button = [JHButton buttonWithType:UIButtonTypeCustom frame:CGRectMake(self.view.center.x - 150  ,self.view.center.y - 150, 300, 300) title:@"进入半糖"  image:[UIImage imageNamed:@"hello"] handler:^(UIButton *sender) {
        
    }];
    button.titleLabel.font = [UIFont systemFontOfSize:35];  //文字大小
    [button setTitleColor:[UIColor colorWithRed:1.000 green:0.629 blue:0.233 alpha:1.000] forState:UIControlStateNormal];
    [self.view addSubview:button];
    
    [button addTarget:self action:@selector(handleButton:) forControlEvents:UIControlEventTouchUpInside];


}

- (void)handleButton:(UIButton *)button{
    
    [self.navigationController pushViewController:[[BTViewController alloc] init] animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
